#pragma once

#include "NFServerComm/NFServerCommon/NFIDescStore.h"
#include "NFServerComm/NFServerCommon/NFIDescTemplate.h"
#include "NFLogicCommon/NFDescStoreMacrosDefine.h"
#include "NFLogicCommon/NFDescStoreTypeDefines.h"
#include "E_ServerLevel.nanopb.h"
#ifndef MAX_SERVERLEVEL_SERVERLEVEL_NUM
#define MAX_SERVERLEVEL_SERVERLEVEL_NUM 60
#endif

class ServerLevelDesc : public NFI_DESC_TEMPLATE_MACRO(ServerLevelDesc, E_ServerLevel, EOT_CONST_SERVERLEVEL_SERVERLEVEL_DESC_ID, MAX_SERVERLEVEL_SERVERLEVEL_NUM)
public:
	ServerLevelDesc();
	virtual ~ServerLevelDesc();
	int CreateInit();
	int ResumeInit();
public:
	int Load(NFResDb *pDB) override;
	int LoadDB(NFResDb *pDB) override;
	int CheckWhenAllDataLoaded() override;
};
